﻿<%@ Page Title="تقرير المحاسب الشهرى" Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Report.Master"
    CodeBehind="AccountantMonthlyReport.aspx.cs" Inherits="Pap.Web.Modules.Reports.Views.AccountantMonthlyReport" %>

<%@ MasterType VirtualPath="~/MasterPages/Report.Master" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ReportParamsPlaceHolder" runat="server">
    <ext:Store ID="strCommittees" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="CommitteeID">
                <Fields>
                    <ext:RecordField Name="CommitteeID" />
                    <ext:RecordField Name="CommitteeName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strReport" runat="server">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="BoardNumber" />
                    <ext:RecordField Name="LoanNumber" />
                    <ext:RecordField Name="OriginalInstallmentAmount" />
                    <ext:RecordField Name="InterestInstallmentAmount" />
                    <ext:RecordField Name="TotalInstallmentAmount" />
                    <ext:RecordField Name="PenaltyAmount" />
                    <ext:RecordField Name="PaymentAmount" />
                    <ext:RecordField Name="PaymentDate" />
                    <ext:RecordField Name="ReceiptNumber" />
                    <ext:RecordField Name="ReceiptDate" />
                    <ext:RecordField Name="UserName" />
                    <ext:RecordField Name="DepositDate" />
                    <ext:RecordField Name="OperationNumber" />
                    <ext:RecordField Name="InstallmentDate" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FormLayout ID="FormLayout1" runat="server">
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strCommittees" ID="cmbCommittees" DisplayField="CommitteeName"
                ValueField="CommitteeID" TypeAhead="true" Editable="true" FieldLabel="الجمعية"
                AllowBlank="false">
            </ext:ComboBox>
        </ext:Anchor>
        <ext:Anchor>
            <ext:ComboBox runat="server" ID="cmbSSIDMonth" Editable="true" FieldLabel="الشهر">
                <Items>
                    <ext:ListItem Text="<%$ Resources:January %>" Value="1" />
                    <ext:ListItem Text="<%$ Resources:February %>" Value="2" />
                    <ext:ListItem Text="<%$ Resources:March %>" Value="3" />
                    <ext:ListItem Text="<%$ Resources:April %>" Value="4" />
                    <ext:ListItem Text="<%$ Resources:May %>" Value="5" />
                    <ext:ListItem Text="<%$ Resources:June %>" Value="6" />
                    <ext:ListItem Text="<%$ Resources:July %>" Value="7" />
                    <ext:ListItem Text="<%$ Resources:August %>" Value="8" />
                    <ext:ListItem Text="<%$ Resources:September %>" Value="9" />
                    <ext:ListItem Text="<%$ Resources:October %>" Value="10" />
                    <ext:ListItem Text="<%$ Resources:November %>" Value="11" />
                    <ext:ListItem Text="<%$ Resources:December %>" Value="12" />
                </Items>
            </ext:ComboBox>
        </ext:Anchor>
        <ext:Anchor>
            <ext:TextField AllowBlank="false" ID="txtYear" FieldLabel="السنة" runat="server">
            </ext:TextField>
        </ext:Anchor>
    </ext:FormLayout>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ReportBodyPlaceHolder" runat="server">
    <div class="r-container">
        <header>
            <div class="logo">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/PAPLogo.jpg" />
            </div>
            <div class="title">
                <%= this.Page.Title %>
            </div>
        </header>
        <div>
            <ext:DataView ID="DataView1" runat="server" StoreID="strReport" SingleSelect="true"
                ItemSelector="tr.row" EmptyText="<div class='x-r-emptyText'>No Data To Display</div>">
                <Template>
                    <html>
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <th>
                                     BoardNumber 
                                </th>
                                <th>
                                    LoanNumber 
                               </th>
                               <th>
        OriginalInstallmentAmount
        </th>
        <th>
        InterestInstallmentAmount </th>
        <th>
        TotalInstallmentAmount </th>
        <th>
        PenaltyAmount </th>
        <th>
        PaymentAmount </th>
        <th>
        PaymentDate </th>
        <th>
        ReceiptNumber </th>
        <th>
        ReceiptDate </th>
        <th>
        UserName </th>
        <th>
        DepositDate </th>
        <th>
        OperationNumber </th>
        <th>
        InstallmentDate</th>
                            </tr>
                            <tpl for=".">
                            <tr>
                                <td>{BoardNumber}</td>
                                <td>{LoanNumber}</td>
                                <td>{OriginalInstallmentAmount}</td>
                                <td>{InterestInstallmentAmount}</td>
                                <td>{TotalInstallmentAmount}</td>
                                <td>{PenaltyAmount}</td>
                                <td>{PaymentAmount}</td>
                                <td>{PaymentDate}</td>
                                <td>{ReceiptNumber}</td>
                                <td>{ReceiptDate}</td>
                                <td>{UserName}</td>
                                <td>{DepositDate}</td>
                                <td>{OperationNumber}</td>
                                <td>{InstallmentDate}</td>
                            </tr>
                        </tpl>
                        </table>
                    </html>
                </Template>
            </ext:DataView>
        </div>
        <footer>
        </footer>
    </div>
</asp:Content>
